h1 {
    counter-reset: h2;
  }
  h2 {
    counter-reset: h3;
  }
  h3 {
    counter-reset: h4;
  }
  h4 {
    counter-reset: h5;
  }
  h5 {
    counter-reset: h6;
  }
  h2:before {
    counter-increment: h2;
    content: counter(h2);
    margin-right: 0.8rem;
  }
  h3:before {
    counter-increment: h3;
    content: counter(h2) "." counter(h3);
    margin-right: 0.8rem;
  }
  h4:before {
    counter-increment: h4;
    content: counter(h2) "." counter(h3) "." counter(h4);
    margin-right: 0.8rem;
  }
  h5:before {
    counter-increment: h5;
    content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5);
    margin-right: 0.8rem;
  }
  h6:before {
    counter-increment: h6;
    content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6);
    margin-right: 0.8rem;
  }
  .md-typeset h1, .md-typeset h2 {
      font-weight: 600;
  }
  .md-typeset h3 {
      font-weight: 500;
  }

/* Center Markdown Tables (requires md_in_html extension) */
.center-table {
  text-align: center;
}

.md-typeset .center-table :is(td,th):not([align]) {
  /* Reset alignment for table cells */
  text-align: initial;
}

[data-md-color-scheme="slate"] img[src$="#dark-invert"] {
    filter: invert(1);
}

/* [data-md-color-scheme="default"] {
  --md-primary-fg-color: #b41f23;
  --md-primary-fg-color--dark: #6e1114;
} */
 
/* 
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #b41f23;
  --md-primary-fg-color--dark: #6e1114;
  --md-default-bg-color:#151515;
} */

[data-md-color-scheme="slate"] {
  --md-default-bg-color:#151515;
}
